var mongo = require('mongoskin');
var db = mongo.db("mongodb://localhost:27017/blog",{native_parser:true});

module.exports = function(req,res,next){
	req.articals = db.collection('article');
	req.users = db.collection('users');
	return next();
}
